package com.itcast.mapper;


import com.itcast.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface PermissionMapper {


    Set<Permission> findPermissionsByRoles(@Param("id") Integer id);

    void add(Permission permission);

    List<Permission> findPage(@Param("queryString") String queryString);

    void edit(Permission permission);

    Permission query(@Param("id") Integer id);

    void delete(@Param("id") Integer id);
}